/*
 * @Author: Drc
 * @Date: 2021-09-07 17:20:18
 * @LastEditTime: 2021-09-17 11:34:39
 * @LastEditors: Drc
 */
import {ThemeText} from '@path/components/ThemeComponents'
import {px2dp} from '@path/config/system'
import Theme from '@path/config/theme'
import React from 'react'
import {TextProps} from 'react-native'
export interface ErrorTipsProps extends TextProps {
  text: string
}
const ErrorTips = (props: ErrorTipsProps) => {
  const {text, style, ...other} = props

  return (
    <ThemeText
      style={{
        fontSize: 12,
        color: Theme.getThemeColor('error'),
        alignSelf: 'center',
        marginTop: px2dp(28),
        ...style,
      }}
      {...other}>
      {text || ' '}
    </ThemeText>
  )
}
export default ErrorTips
